package com.seu.design.pattern.behavioral.strategy;

/**
 * Created by seu-lfh
 */
public class PromotionActivity {
    private PromotionStrategy promotionStrategy;

    /**
     * 构造函数
     *
     * @param promotionStrategy
     */
    public PromotionActivity(PromotionStrategy promotionStrategy) {
        this.promotionStrategy = promotionStrategy;
    }

    /**
     * 执行策略
     */
    public void executePromotionStrategy() {
        promotionStrategy.doPromotion();
    }

}
